home *** CD-ROM | disk | FTP | other *** search
- Path: Norway.EU.net!usenet
- From: patrick.hanevold@login.eunet.no (Patrick Hanevold)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: RND
- Date: 6 Jan 1996 21:10:25 GMT
- Organization: EUnet Norway
- Message-ID: <671.6579T1321T1500@login.eunet.no>
- References: <709.6578T1027T1962@login.eunet.no> <1996Jan6.190221.7989@imada.ou.dk>
- NNTP-Posting-Host: pc6.asker-pm2-1.eunet.no
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
-
- >> RND MACRO
- >> move.w (a0),\1
- >> move.w 2(a0,\1.l*2),\1
- >> move.w \1,(a0)
- >> ENDM
-
- >This is very likely to result in a cycle, hence decreasing the
- >random sequence drastically.
- Just like the original random routine. :)
-
- >A way to get around this problem is to use an additive pseudo-
- >random generator (warning: off the top of my head)
- Many ways to solve the problem, but it's good enough as it is.
- Don't get no pattern in my fractal landscapes. :)
-
- Never get a routine that never repeats it self some time.
-
- <sb>Patrick Hanevold - Virtual Reality developer
- <sb>patrick.hanevold@login.eunet.no
- <sb>Amiga and official Be developer
-
-